<?php
header("Content-type: text/html; charset=utf-8");
set_time_limit (0);
$link = mysqli_connect('127.0.0.1','root','','sku');
$res = mysqli_query($link, 'set names utf8');
$res = mysqli_query($link, 'select * from skulist');
while ($row = mysqli_fetch_assoc($res)){
    $data[] = $row;
}
//var_dump($data);
foreach ($data as $v){
    $key = $v["老SKU"];
    $str = $v["产品描述1"];
    $str = strip_tags($str);
    $sql = "update skulist set `产品描述1`='$str' where `老SKU`='$key' ";
    mysqli_query($link, $sql);
}
